package com.zhang.auth.config;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.io.Serializable;

/**
 * @Description
 * @Author zsw
 * @Date 2019/11/12 22:49
 * @Version V1.0
 **/
@Slf4j
@Configuration
@ConfigurationProperties(prefix = "error-login")
@Data
public class ErrorLoginConfig implements Serializable {

    private boolean enabled;

    private int maxErrorCount;

    private int  maxIntervalTime;
}